<!doctype html>
<html>
  <head></head>

  <body>
    <script data-main="js/main" src="js/require.js"></script>
    <script>
      var publicVars = [
        'connect',
        'createLocalAudioTrack',
        'createLocalTracks',
        'createLocalVideoTrack',
        'isSupported',
        'LocalAudioTrack',
        'LocalDataTrack',
        'LocalVideoTrack',
        'Logger'
      ];
      require(['../../../../dist/twilio-video.min'], function(video) {
        try {
          if (typeof video !== 'undefined' && publicVars.every(function(publicVar) {
            return publicVar in video;
          })) {
            console.log({
              status: 'success',
              version: video.version
            });
          } else {
            console.log({
              status: 'failure',
              reason: 'Video undefined'
            });
          }
        } catch(e) {
          console.log({
            status: 'failure',
            reason: e.message || e
          });
        }
      });
    </script>
  </body>
</html>
